-- GENERATED SPELL FOR [Kor'kron Elite] --


function spell0_14304(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40505,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14304', 511, 1)
end

function spell1_14304(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_14304', 591, 1)
end

function Sorts_14304(pUnit, Event)
local choix_sorts_14304 = math.random(0, 1)
if choix_sorts_14304 == 0 then
pUnit:RegisterEvent('spell0_14304', 1, 1)
end
if choix_sorts_14304 == 1 then
pUnit:RegisterEvent('spell1_14304', 1, 1)
end
end

function mob14304_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14304', math.random(1500, 3000), 1)
end

function mob14304_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14304_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14304_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14304, 1, 'mob14304_Action')
RegisterUnitEvent(14304, 2, 'mob14304_Leave')
RegisterUnitEvent(14304, 3, 'mob14304_Kill')
RegisterUnitEvent(14304, 4, 'mob14304_Die')
